\documentclass{article}
\usepackage{listings}
\begin{document}

main text before
\begin{lstlisting}
123456789
  34   89
12  567
---------
\end{lstlisting}
main text after

\end{document}
